package com.mmall.service;

import com.mmall.common.ServerResponse;
import com.mmall.pojo.Category;

import java.util.List;

public interface ICategroyService {

    ServerResponse addCategroy(String categroyName, Integer categroyId);

    ServerResponse updateCategroy(String NewcategroyName, Integer NewcategroyId);

    ServerResponse<List<Category>> selectParentIdAndCategroy(Integer parentId);

    ServerResponse<List<Integer>> selectRecursionAndParentIdAndCategroy(Integer parentId);
}
